<?php echo $this->fetch('header.html'); ?>
 
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=module"><?php echo $this->_var['lang']['module_admin']; ?></a></li>
<li><a href="http://www.deitui.com/index.php?m=yunmodule&product=xyo2o">应用商店</a></li>
</ul>

<div class="rbox">
<div class="search-form">
	下载秘钥 <input type="text" id="downcode"> <div class="btn" id="yun_app_install">安装</div>
</div>

<table width="100%" class="table table-bordered">
<tr>
<?php $_from = $this->_var['mods']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<td width="15%"><?php echo $this->_var['c']['title']; ?></td>
<td width=" "><?php echo $this->_var['c']['info']; ?></td>
<td width="22%"><?php if ($this->_var['c']['isinstall']): ?><font style="color:red"><a href='javascript:;' onclick="if(confirm('<?php echo $this->_var['lang']['confirm_uninstall_module']; ?>')){window.location.href='<?php echo $this->_var['appadmin']; ?>?m=module&a=uninstall&inmodule=<?php echo $this->_var['c']['module']; ?>';}"><?php echo $this->_var['lang']['uninstall']; ?></a></font> <a href="/module.php?m=<?php echo $this->_var['c']['module']; ?>" target="_blank"><?php echo $this->_var['lang']['view']; ?></a>
<a href="<?php echo $this->_var['c']['adminurl']; ?>" target="menu-frame" >管理</a>
 
<?php else: ?><a href='<?php echo $this->_var['appadmin']; ?>?m=module&a=install&inmodule=<?php echo $this->_var['c']['module']; ?>'><?php echo $this->_var['lang']['install']; ?></a><?php endif; ?>
 
 
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
</div>
<script>
$(function(){
	$(document).on("click","#yun_app_install",function(){
		$.post("<?php echo $this->_var['appadmin']; ?>?m=module&a=DownInstall&ajax=1&downcode="+$("#downcode").val(),function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast(data.message);
			}
		},"json");
	});
});
</script>
<?php echo $this->fetch('footer.html'); ?>